This Class represents a dataobject for creating a Discount
The spent amount of the Discount - must be less than or equal to Value when type is `f`
The code of the Discount
The the date the Discount was created
The expiry date of the Discount (empty for none)
The the useage limit of the Discount
The ids of the products related to this Discount
The customer associations related to this Discount
The customer group associations related to this Discount
The title of the Discount
The type of the Discount ('p' for percentage, 'f' for fixed amount, 'fs' for free shipping, 'fg' for free gift). Free shipping and free gift require a Growth, Advanced, or Success plan.
The use count of the Discount
The value of the Discount (either percentage of fixed amount according to the Type)
Wether or not the Discount has VAT
The start date of the discount
If the Discount is active
If the Discount is restricted to new customers
Minimum cart discount to to make discount applicable
Product Category limitations of this Discount. Optional. Only created if the field is set.
If the Discount is restricted to a single use per customer
The delivery method IDs to associate with this free shipping discount (only applicable when Type is 'fs')
The free gift association for this discount (only applicable when Type is 'fg'). Contains ProductId (required), VariantId (required if product has variants), and Amount (defaults to 1).
Documentation generated on Thu, 26 Jul 2018 13:22:46 +0000 by phpDocumentor 1.4.4